//
//  ViewController.swift
//  JenkinsTest
//
//  Created by 莫锹文 on 2017/10/13.
//  Copyright © 2017年 莫锹文. All rights reserved.
//

import UIKit

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        let imageView = UIImageView(frame: CGRect(x: 50, y: 100, width: 300, height: 300))
        imageView.contentMode = .scaleAspectFit
        imageView.backgroundColor = UIColor.gray
        imageView.image = UIImage(named: "LaunchImage-800-667h@2x.png")

        self.view.addSubview(imageView)

        let label = UILabel(frame: CGRect(x: 0, y: 400, width: self.view.frame.width, height: 24))
        label.textAlignment = .center
        label.backgroundColor = UIColor.green

        #if DEBUG
            label.text = "This is debug mode"
        #else
            label.text = "This is release mode"
        #endif

        self.view.addSubview(label)
    }

}
